<%--
  Created by IntelliJ IDEA.
  User: 15c
  Date: 2017/4/7
  Time: 9:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body style="text-align:center" >
<div style="margin-top: 10%">
    <h2>管理员登录</h2>

    <form action="${pageContext.request.contextPath}/login" method="post">
        <p style="font-weight: bold">用户名:<input type="text" name="uname" style="margin-top: 2%"/></p>
        <p style="font-weight: bold">密码:<input type="password" name="password" style="margin-top: 1%"/></p>
        <input type="submit" value="登录"  style="border:3px solid #ccc;background:#cccccc;margin-top: 1%">
        <a href="${pageContext.request.contextPath}/index"><input type="button" value="取消"  style="border:3px solid #ccc;background:#cccccc;margin-left: 2%;margin-top: 1%"></a>
        <br><span style="color: brown">${error}</span>

    </form>
</div>

</body>
</html>
